package com.czh.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czh.subject.infra.basic.entity.SubjectMapping;
import java.util.List;

/**
 * 题目分类关系表(SubjectMapping)表服务接口
 *
 * @author caozaihui
 * @since 2024-08-01 01:25:04
 */
public interface SubjectMappingService extends IService<SubjectMapping> {

    /** 
     * 
     * @param id 主键
     * @author caozaihui  
     * @description  通过ID查询单条数据
     * @date 2024-08-01 01:25:04
     * @return 实例对象
     */
    SubjectMapping selectSubjectMappingById (Long id);
        
    /** 
     * 
     * @param subjectMapping 实例对象
     * @author caozaihui  
     * @description 分页查询数据
     * @date 2024-08-01 01:25:04
     * @return 实例对象
     */
    List<SubjectMapping> querySubjectMappingList (SubjectMapping subjectMapping);
    
    
   /** 
     * 
     * @param subjectMapping 实例对象
     * @author caozaihui  
     * @description  新增数据
     * @date 2024-08-01 01:25:04
     * @return 实例对象
     */
    int insert(SubjectMapping subjectMapping);
    
   /** 
     * 
     * @param subjectMapping 实例对象
     * @author caozaihui  
     * @description 修改数据并返回
     * @date 2024-08-01 01:25:04
     * @return 实例对象
     */
    int update(SubjectMapping subjectMapping);
    
    
    /**
     *
     * @param ids 主键
     * @author caozaihui 
     * @description  通过主键删除数据
     * @date 2024-08-01 01:25:04
     * @return
     */
    int deleteByIds(List<Long> ids);

    List<Long> selectLabelBySubjectId(Long id);

    List<SubjectMapping> querySubjectLabelIds(SubjectMapping subjectMapping);
}

